//
//  GDFormModel.h
//  GridGovernance
//
//  Created by 吴欧 on 2017/11/23.
//  Copyright © 2017年 Bitvalue. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HEGoodsModel.h"
#import "HEStoreInfoModel.h"
#import "HEGoodsCommentModel.h"
#import "HEPreviewOrderModel.h"
#import "HEReceiveAddressModel.h"
#import "HEPaymentModel.h"
#import "HEOrderModel.h"
#import "HEDoctorCommentModel.h"
#import "HEDoctorInfoModel.h"
#import "HEAIMsgModel.h"
#import "HEActiveModel.h"
#import "HETranspFeesModel.h"

/**
 数据表单 model 字段
 👇：
 ①、填充数据
 ②、设置cell的事件代理
 ③、只要得到该model，所有对cell的数据修改，都是对应通过修改formModel然后reloadData
 
 // 可以通过继承的方式，避免本类臃肿
 */
@interface GDFormModel : NSObject

#pragma mark - 配置GDFiterCellModel中的默认key 字段
/*
 imagesKey和photoUrlsKey 2个字段必加，不然会crash key为nil， -->为解决这问题，本类为这2个字段设置默认key
 */
@property (nonatomic, strong) NSString *gd_imgs; // 实际被选中的图片数组

@property (nonatomic, strong) NSString *gd_imgUrls; // 图片的url地址，用于进入编辑界面

@property (nonatomic, strong) NSString *gd_locImgs; // 实体UIImage图片集合，用于进入编辑界面

@property (nonatomic, strong) NSString *gd_textTF; // 文本输入框

#pragma mark - 代理配置，表单弱引用
@property (nonatomic, weak) UIViewController *proxyVC;

#pragma mark - 图片字段配置 - 单个新增图片项

///// 进入编辑界面 - 能否清空photoview被选中的图片。
//@property (nonatomic, assign) BOOL isEnableClearPhotos;

/// 设置添加图片数目
@property (nonatomic, assign) NSInteger maxImgNum;

#pragma mark - 商品详请
@property (nonatomic, strong) HEGoodsModel *goodsModel;
@property (nonatomic, strong) HEStoreInfoModel *storeModel;
@property (nonatomic, strong) NSString *specStr; // 规格提示文本
@property (nonatomic, strong) NSArray *urls; // 规格提示文本

@property (nonatomic, strong) NSArray <HEGoodsCommentModel *> *dg_commnets; // 详请页评论列表数据
@property (nonatomic, assign) NSInteger dg_commnetsTotal; //  评论总数
@property (nonatomic, strong) NSMutableArray <HEGoodsModel *> * recomGoodsArr; // 推荐商品

#pragma mark - 创建订单
@property (nonatomic, strong) NSString *order_leaveMsg; // 留言
@property (nonatomic, strong) NSString *order_payType; // 支付方式 1：微信支付 2支付宝支付
@property (nonatomic, strong) HEReceiveAddressModel *order_addres; // 收货地址
@property (nonatomic, strong) NSArray *order_goodsDataSource; // 订单预览中的商品
@property (nonatomic, strong) NSArray <HEPaymentModel *>*order_payments; // 支付方式
@property (nonatomic, strong) NSString *order_serverTime; // 服务时间
@property (nonatomic, strong) NSString *order_staffId; // 指派人员的用户id
@property (nonatomic, strong) NSString *order_staffName; // 指派人员的用户id


#pragma mark - 订单详请
@property (nonatomic, strong) HEOrderModel *od_details;
@property (nonatomic, strong) NSMutableArray <HEOrderItemModel *> *od_itemList; //
@property (nonatomic, strong) NSMutableArray *od_orderInfoItems; //
@property (nonatomic, strong) HETranspFeesModel *od_transFee;

#pragma mark - 评价
@property (nonatomic, assign) CGFloat cm_score; // 评论评分
@property (nonatomic, strong) NSString *cm_content; // 评论内容
@property (nonatomic, strong) NSMutableArray *cm_hximgs; // hx的图片实体数组  【图片+视频】
@property (nonatomic, strong) NSMutableArray <UIImage *>*cm_imgs; // UIImage图片数组
@property (nonatomic, strong) NSMutableArray <NSString *>*cm_imgUrls; // 图片上传后的url数组  【图片+视频】

@property (nonatomic, strong) NSMutableArray <NSURL *>*cm_video; // 本地视频路径


#pragma mark - 设置
@property (nonatomic, strong) NSString *st_cache; //
@property (nonatomic, strong) NSNumber *st_openNotice; //
@property (nonatomic, strong) NSNumber *st_openGestures; //
@property (nonatomic, strong) NSNumber *st_openFingerprint; //


#pragma mark - 地址管理
@property (nonatomic, strong) HEReceiveAddressModel *addressDetails; //

#pragma mark - 申请售后
@property (nonatomic, assign) NSInteger as_type; // 申请售后类型
@property (nonatomic, strong) NSMutableArray <HEOrderItemModel *> *as_orderItemList;  
@property (nonatomic, strong) NSString *as_content; // 售后申请描述
@property (nonatomic, strong) NSString *as_returnAmount; // 退款金额
@property (nonatomic, strong) NSString *as_logCode; // 退货快递编号

#pragma mark - 医生主页详请
@property (nonatomic, strong) HEDoctorInfoModel *doc_details; //
@property (nonatomic, strong) NSArray <HEDoctorInfoModel *> *doc_serverList; //
@property (nonatomic, strong) NSMutableArray <HEDoctorCommentModel *> *doc_commentList; //
@property (nonatomic, strong) HEDoctorInfoModel *doc_selectServer; //
@property (nonatomic, assign) NSInteger doc_totalCommet; //
@property (nonatomic, assign) NSInteger doc_pageType; //

#pragma mark - 报告解读 添加
@property (nonatomic, strong) NSString *rp_title; // 指导主题
@property (nonatomic, strong) NSString *rp_text; //


#pragma mark - 家庭医生签约
@property (nonatomic, strong) NSString *pd_name; //
@property (nonatomic, strong) NSString *pd_scjzTime; // 上次就诊时间
@property (nonatomic, strong) NSString *pd_jzHsp; // 就诊医院
@property (nonatomic, strong) NSString *pd_jzDept; //
@property (nonatomic, strong) NSString *pd_jzJb; //
@property (nonatomic, strong) NSString *pd_desc; //

#pragma mark - 图文问诊
@property (nonatomic, strong) NSString *tw_zx; // 症状
@property (nonatomic, strong) NSString *tw_bqms; // 症状
@property (nonatomic, strong) NSString *tw_hbsc; // 症状
@property (nonatomic, strong) NSString *tw_help; // 希望获得的帮助
@property (nonatomic, strong) NSString *tw_drug; // 用药情况
@property (nonatomic, strong) NSString *tw_gms; // 过敏史
@property (nonatomic, strong) NSString *tw_jwbs; // 既往病史
@property (nonatomic, assign) BOOL tw_hasSee; // 是否就该级别就过诊


#pragma mark - 申请加号
@property (nonatomic, strong) NSString *ap_phone; //  电话号码
@property (nonatomic, strong) NSString *ap_card; //
@property (nonatomic, strong) NSString *ap_conent; //
@property (nonatomic, strong) NSString *ap_time; //


#pragma mark - AI问诊

@property (nonatomic, strong) HEAIMsgModel *zx_model; //
@property (nonatomic, strong) NSArray <NSString *> *ai_content; //
@property (nonatomic, strong) NSArray *dataSource; // 小贴士

#pragma  mark - 消息
@property (nonatomic, strong) NSArray <HEActiveModel *> *infoArr; //

#pragma mark - 个人信息
@property (nonatomic, strong) NSString *pi_nicename; //
@property (nonatomic, strong) NSString *pi_userIco; //
@property (nonatomic, strong) NSString *pi_phone; //
@property (nonatomic, strong) NSString *pi_realName; //
@property (nonatomic, strong) NSString *pi_sex; //
@property (nonatomic, strong) NSString *pi_healthCode; //

@property (nonatomic, strong) NSString *pi_birthd; //
@property (nonatomic, strong) NSString *pi_age; //
@property (nonatomic, strong) NSString *pi_cardType; //
@property (nonatomic, strong) NSString *pi_cardCode; //
@property (nonatomic, strong) NSString *pi_hyzk; //
@property (nonatomic, strong) NSString *pi_mz; //
@property (nonatomic, strong) NSString *pi_jzqk; //
@property (nonatomic, strong) NSString *pi_whcd; //
@property (nonatomic, strong) NSString *pi_zy; //
@property (nonatomic, strong) NSString *pi_jjly; //
@property (nonatomic, strong) NSString *pi_ysr; //
@property (nonatomic, strong) NSString *pi_ylbz; //
@property (nonatomic, strong) NSString *pi_snqk; //
@property (nonatomic, strong) NSString *pi_cjqk; //


#pragma mark - 健康规划单
@property (nonatomic, strong) NSString *pl_title; //


#pragma mark - 添加老人
@property (nonatomic, strong) NSString *bd_phone; //
@property (nonatomic, strong) NSString *bd_name; //
@property (nonatomic, strong) NSString *bd_idNo; //
@property (nonatomic, strong) NSString *bd_address; //
@property (nonatomic, strong) NSString *bd_mz; // 民族
@property (nonatomic, strong) NSString *bd_gx; // 关系

#pragma mark - 优惠
@property (nonatomic, strong) NSString *pf_title; // 优惠

@end
